//package com.info.zhiduoduo.weixin.controller;
//
//import com.info.zhiduoduo.common.annotation.LogEntity;
//import com.info.zhiduoduo.common.annotation.LogParameter;
//import com.info.zhiduoduo.common.annotation.ZddLog;
//import com.info.zhiduoduo.common.constants.SmartResult;
//import com.info.zhiduoduo.common.constants.system.ZddLogType;
//import com.info.zhiduoduo.common.formbean.BaseAuthInfo;
//import com.info.zhiduoduo.common.formbean.BaseSimpleFormBean;
//import com.info.zhiduoduo.core.formbean.ListPartnerStudioWithdrawsFromBean;
//import com.info.zhiduoduo.core.service.CorePartnerService;
//import com.info.zhiduoduo.repository.dto.partner.PartnerCommissionFlowDto;
//import com.info.zhiduoduo.repository.dto.partner.PartnerCommissionInfoDto;
//import com.info.zhiduoduo.repository.dto.partner.PartnerCompanyMonthlyCrowdourceCostDto;
//import com.info.zhiduoduo.repository.dto.partner.PartnerCompanyTotalBrokerageDto;
//import com.info.zhiduoduo.repository.dto.partner.PartnerCompanyTotalProjectAmountDto;
//import com.info.zhiduoduo.repository.dto.partner.PartnerMonthlyCostDto;
//import com.info.zhiduoduo.repository.dto.partner.PartnerStudioWithdrawDto;
//import com.info.zhiduoduo.repository.dto.partner.PartnerVaccineRecordDto;
//import com.info.zhiduoduo.repository.dto.partner.PartnerWithdrawDto;
//import com.info.zhiduoduo.repository.entity.partner.PartnerAccount;
//import com.info.zhiduoduo.weixin.formbean.partner.AddShareUserFormBean;
//import com.info.zhiduoduo.weixin.formbean.partner.AuthenticationFormBean;
//import com.info.zhiduoduo.weixin.formbean.partner.BindStudioFromBean;
//import com.info.zhiduoduo.weixin.formbean.partner.CommissionFlowFormBean;
//import com.info.zhiduoduo.weixin.formbean.partner.ListWithdrawRecordFormBean;
//import com.info.zhiduoduo.weixin.formbean.partner.MonthlyCostFormBean;
//import com.info.zhiduoduo.weixin.formbean.partner.OrgPartnerLoginFormBean;
//import com.info.zhiduoduo.weixin.formbean.partner.PartnerBankcardAuthFormBean;
//import com.info.zhiduoduo.weixin.formbean.partner.PartnerDfPwdFormBean;
//import com.info.zhiduoduo.weixin.formbean.partner.PartnerForgetDfPwdFormBean;
//import com.info.zhiduoduo.weixin.formbean.partner.PartnerVaccineRecordFormBean;
//import com.info.zhiduoduo.weixin.formbean.partner.PartnerVaccineRecordListFormBean;
//import com.info.zhiduoduo.weixin.formbean.partner.RecommendCompanyListFormBean;
//import com.info.zhiduoduo.weixin.formbean.partner.SubmitRecommendCompanyFormBean;
//import com.info.zhiduoduo.weixin.formbean.system.RegFormBean;
//import com.info.zhiduoduo.weixin.service.PartnerService;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.validation.Valid;
//
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//
//@Api(tags = "合伙人接口")
//@RestController
//@RequestMapping("/partner")
//public class PartnerController {
//
//	@Autowired
//	PartnerService partnerService;
//	@Autowired
//	CorePartnerService corePartnerService;
//
//	@ApiOperation("获取佣金提现信息")
//	@PostMapping("/getWithdrawInfo")
//	public SmartResult<PartnerWithdrawDto> getWithdrawInfo(@RequestBody BaseSimpleFormBean formBean) {
//		return partnerService.getWithdrawInfo(formBean);
//	}
//
//	@ZddLog(type = ZddLogType.QUERY,name = "提交提现")
//	@ApiOperation("提交提现")
//	@PostMapping("/commitWithdraw")
//	public SmartResult commitWithdraw(@RequestBody BaseSimpleFormBean formBean) {
//		return partnerService.commitWithdraw(formBean);
//	}
//
//	@ApiOperation("获取合伙人工作室模式提现申请列表")
//	@PostMapping("/listPartnerStudioWithdraws")
//	public SmartResult<PartnerStudioWithdrawDto> listPartnerStudioWithdraws(@RequestBody BaseSimpleFormBean<ListPartnerStudioWithdrawsFromBean> formBean) {
//		return partnerService.listPartnerStudioWithdraws(formBean);
//	}
//
//	@ZddLog(type = ZddLogType.QUERY,name = "手机短信验证")
//	@ApiOperation("手机短信验证")
//	@PostMapping("/regPartner")
//	public SmartResult regPartner(@RequestBody BaseSimpleFormBean<RegFormBean> baseSimpleFormBean) {
//		return partnerService.regPartner(baseSimpleFormBean);
//	}
//
//	@ZddLog(name = "实名认证")
//	@ApiOperation("实名认证")
//	@PostMapping("/realNameAuthentication")
//	public SmartResult realNameAuthentication(@RequestBody BaseSimpleFormBean<AuthenticationFormBean> baseSimpleFormBean) {
//		return partnerService.realNameAuthentication(baseSimpleFormBean);
//	}
//
//	@ApiOperation("获取合伙人详细信息")
//	@PostMapping("/getPartnerInfo")
//	public SmartResult getPartnerInfo(@RequestBody BaseAuthInfo baseAuthInfo) {
//		return partnerService.getPartnerInfo(baseAuthInfo);
//	}
//
//	@ApiOperation("设置提现密码")
//	@PostMapping("/updatePartnerDfPwd")
//	public SmartResult updatePartnerDfPwd(@RequestBody BaseSimpleFormBean<PartnerDfPwdFormBean> baseSimpleFormBean) {
//		return partnerService.updatePartnerDfPwd(baseSimpleFormBean);
//	}
//
//	@ApiOperation("忘记提现密码")
//	@PostMapping("/PartnerForgetDfPwd")
//	public SmartResult PartnerForgetDfPwd(@RequestBody BaseSimpleFormBean<PartnerForgetDfPwdFormBean> baseSimpleFormBean) {
//		return partnerService.PartnerForgetDfPwd(baseSimpleFormBean);
//	}
//
//	@ApiOperation("校验提现密码")
//	@PostMapping("/checkPartnerDfPwd")
//	public SmartResult checkPartnerDfPwd(@RequestBody BaseSimpleFormBean<PartnerDfPwdFormBean> baseSimpleFormBean) {
//		return partnerService.checkPartnerDfPwd(baseSimpleFormBean);
//	}
//
//	@ZddLog(type = ZddLogType.UPDATE,name = "绑定银行卡")
//	@ApiOperation("绑定银行卡")
//	@PostMapping("/partnerBankcardAuth")
//	public SmartResult partnerBankcardAuth(@Valid @RequestBody BaseSimpleFormBean<PartnerBankcardAuthFormBean> baseSimpleFormBean) {
//		return partnerService.partnerBankcardAuth(baseSimpleFormBean);
//	}
//
//	@ApiOperation("获取推荐企业")
//	@PostMapping("/getPartnerCompany")
//	public SmartResult getPartnerCompany(@RequestBody BaseSimpleFormBean formBean) {
//		return partnerService.getPartnerCompany(formBean);
//	}
//
//	@ApiOperation("查询合伙人最新佣金记录")
//	@PostMapping("/getPartnerCommissionInfo")
//	public SmartResult<PartnerCommissionInfoDto> getPartnerCommissionInfo(@RequestBody BaseSimpleFormBean formBean) {
//		return partnerService.getPartnerCommissionInfo(formBean);
//	}
//
//	@ApiOperation("查询合伙人佣金流水")
//	@PostMapping("/getPartnerCommissionFlowingWater")
//	public SmartResult<PartnerCommissionFlowDto> getPartnerCommissionFlowingWater(@RequestBody BaseSimpleFormBean<CommissionFlowFormBean> formBean) {
//		return partnerService.getPartnerCommissionFlowingWater(formBean);
//	}
//
//	@ApiOperation("生成分享图片")
//	@PostMapping("/createShareImg")
//	public SmartResult createShareImg(@RequestBody BaseSimpleFormBean<String> formBean) {
//		return partnerService.createShareImg(formBean);
//	}
//
//	@ApiOperation("根据图片id获取图片")
//	@PostMapping("/getShareImg")
//	public SmartResult getShareImg(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//		return partnerService.getShareImg(formBean);
//	}
//
//	@ApiOperation("添加分享用户")
//	@PostMapping("/addShareUser")
//	public SmartResult addShareUser(@RequestBody BaseSimpleFormBean<AddShareUserFormBean> formBean) {
//		return partnerService.addShareUser(formBean);
//	}
//
//	@ApiOperation("分享用户列表")
//	@PostMapping("/shareUserList")
//	public SmartResult getShareUserList(@RequestBody BaseSimpleFormBean formBean) {
//		return partnerService.getShareUserList(formBean);
//	}
//
//
//	@ApiOperation("获取合同中合伙人字段")
//	@PostMapping("/queryGivenField")
//	public SmartResult queryGivenField(@RequestBody BaseSimpleFormBean formBean) {
//		return partnerService.queryGivenField(formBean);
//	}
//
//	@ZddLog(name = "提交推荐的企业")
//	@ApiOperation("提交推荐的企业")
//	@PostMapping("/submitRecommendCompany")
//	public SmartResult submitRecommendCompany(@RequestBody BaseSimpleFormBean<SubmitRecommendCompanyFormBean> formBean) {
//		return partnerService.submitRecommendCompany(formBean);
//	}
//
//	@ApiOperation("获取推荐的企业列表")
//	@PostMapping("/recommendCompanyList")
//	public SmartResult getRecommendCompanyList(@RequestBody BaseSimpleFormBean<RecommendCompanyListFormBean> formBean) {
//		return partnerService.getRecommendCompanyList(formBean);
//	}
//
//	@ApiOperation("推荐企业详情")
//	@PostMapping("/recommendCompanyDetail")
//	public SmartResult getRecommendCompanyDetail(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//		return partnerService.getRecommendCompanyDetail(formBean);
//	}
//
//	@ZddLog(type = ZddLogType.UPDATE,name = "修改微信号和邮箱",entities = @LogEntity(entity = PartnerAccount.class,parameters =
//	@LogParameter(fields = "partnerid",parameters = "formBean.userid")))
//	@ApiOperation("修改微信号和邮箱")
//	@PostMapping("/updateWXNumberAndEmail")
//	public SmartResult updateWXNumberAndEmail(@RequestBody BaseSimpleFormBean<AuthenticationFormBean> baseSimpleFormBean) {
//		return partnerService.updateWXNumberAndEmail(baseSimpleFormBean);
//	}
//
//	@ApiOperation("机构合伙人直接登陆微信端")
//	@PostMapping("/orgPartnerLogin")
//	public SmartResult orgPartnerLogin(@RequestBody BaseSimpleFormBean<OrgPartnerLoginFormBean> formBean) {
//		return partnerService.orgPartnerLogin(formBean);
//	}
//
//	@ApiOperation("合伙人绑定工作室")
//	@PostMapping("/bindStudio")
//	public SmartResult bindStudio(@Valid @RequestBody BaseSimpleFormBean<BindStudioFromBean> formBean) {
//		return partnerService.bindStudio(formBean);
//	}
//
//	@ApiOperation("获取提现记录列表")
//	@PostMapping("/listWithdrawRecord")
//	public SmartResult listWithdrawRecord(@Valid @RequestBody BaseSimpleFormBean<ListWithdrawRecordFormBean> formBean) {
//		return partnerService.listWithdrawRecord(formBean);
//	}
//
//	@ApiOperation("按公司获取提现佣金总金额(已提/未提)")
//	@PostMapping("/listCompanyTotalBrokerage")
//	public SmartResult<PartnerCompanyTotalBrokerageDto> listCompanyTotalBrokerage(@Valid @RequestBody BaseSimpleFormBean formBean) {
//		return partnerService.listCompanyTotalBrokerage(formBean);
//	}
//
//	@ApiOperation("按公司获取项目总金额(已提/未提)")
//	@PostMapping("/listCompanyTotalProjectAmount")
//	public SmartResult<PartnerCompanyTotalProjectAmountDto> listCompanyTotalProjectAmount(@Valid @RequestBody BaseSimpleFormBean formBean) {
//		return partnerService.listCompanyTotalProjectAmount(formBean);
//	}
//
//	@ApiOperation("获取合伙人每月成本分佣列表")
//	@PostMapping("/listMonthlyCostByPartnerId")
//	public SmartResult<PartnerMonthlyCostDto> listMonthlyCost(@RequestBody BaseSimpleFormBean<MonthlyCostFormBean> formBean) {
//		return partnerService.listMonthlyCost(formBean);
//	}
//
//	@ApiOperation(value = "获取合伙人每月成本分佣详情列表", notes = "请求参数reqdata: 是合伙人列表中的合伙人成本id")
//	@PostMapping("/listCompanyMonthlyCostById")
//	public SmartResult<PartnerCompanyMonthlyCrowdourceCostDto> listCompanyMonthlyCost(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//		return partnerService.listCompanyMonthlyCost(formBean);
//	}
//
//	@ApiOperation("领取抗原分销专属海报")
//	@PostMapping("/retrieveVaccinePoster")
//	public SmartResult retrieveVaccinePoster(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//		return partnerService.retrieveVaccinePoster(formBean);
//	}
//
//	@ApiOperation("用户提交合伙人抗原分销申请表单")
//	@PostMapping("/savePartnerVaccineRecord")
//	public SmartResult savePartnerVaccineRecord(@Valid @RequestBody BaseSimpleFormBean<PartnerVaccineRecordFormBean> formBean) {
//		return partnerService.savePartnerVaccineRecord(formBean);
//	}
//
//	@ApiOperation(value = "获取合伙人抗原分销提交表单列表", notes = "userid是partnerid，必传")
//	@PostMapping("/listPartnerVaccineRecords")
//	public SmartResult<PartnerVaccineRecordDto> listPartnerVaccineRecords(@RequestBody BaseSimpleFormBean<PartnerVaccineRecordListFormBean> formBean) {
//		return partnerService.listPartnerVaccineRecords(formBean);
//	}
//
//	@ApiOperation("获取抗原分销专属海报")
//	@GetMapping("/getVaccinePoster")
//	public SmartResult getVaccinePoster(int partnerid) {
//		return partnerService.getVaccinePoster(partnerid);
//	}
//}
